package com.ag.dgm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ag.bean.TbDisposalAdvice;
import com.ag.bean.TbPlan;
import com.ag.bean.TbPlanStandard;
import com.ag.dgm.dao.TbDisposalAdviceDAO;
import com.ag.dgm.service.IDisposalAdviceService;

@Service("disposalAdviceService")
public class DisposalAdviceServiceImpl implements IDisposalAdviceService {

	@Resource(name = "DGMtbDisposalAdviceDAO")
	private TbDisposalAdviceDAO dao;

	public TbDisposalAdviceDAO getDao() {
		return dao;
	}

	public void setDao(TbDisposalAdviceDAO dao) {
		this.dao = dao;
	}

	@Override
	public List<TbDisposalAdvice> findAdviceByAllType(String eventId) {
		// TODO Auto-generated method stub
		System.out.println("这是findAdviceByAllType_serviceImpl方法");
		return dao.findAdviceByAllType(eventId);
	}

	@Override
	public List<TbDisposalAdvice> findAdviceByType(String eventId,
			String atIdString) {
		System.out.println("这是findAdviceByType_serviceImpl方法");
		return dao.findAdviceByType(atIdString, eventId);
	}

	@Override
	public TbPlan queryEventPlan(String eid) {
		System.out.println("这是queryEventPlan_service方法");
		return dao.queryEventPlan(eid);
	}
	
	@Override
	public void updateEventLevel(String eventLevel, String eid) {
		dao.updateEventLevel(eventLevel,eid);
	}

	@Override
	public List<TbPlanStandard> queryEventPlanStandard(String eid) {
		return dao.queryEventPlanStandard(eid);
	}

	@Override
	public String queryPlanReason(String eid) {
		
		return dao.queryPlanReason(eid);
		
	}

	@Override
	public void delPlanByEvent(String eid) {
		dao.delPlanByEvent(eid);
		
	}
}
